package com.thb.pay.api.agent;

import com.thb.pay.core.utils.PageResult;
import com.thb.pay.vo.req.AgentInfoPageReq;
import com.thb.pay.vo.req.AgentInfoReq;
import com.thb.pay.vo.resp.AgentInfoVo;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@Slf4j
@Component
public class AgentInfoServiceApiFallbackFactory implements FallbackFactory<AgentInfoServiceApi> {


    @Override
    public AgentInfoServiceApi create(Throwable throwable) {
        return new AgentInfoServiceApi() {


            @Override
            public PageResult<AgentInfoVo> findPage(@RequestBody AgentInfoPageReq pageReq) {
                return null;
            }

            @Override
            public void add(@RequestBody AgentInfoReq agentInfo) {

            }

            @Override
            public AgentInfoVo getByLoginName(@RequestParam("loginName") String loginName) {
                return null;
            }

            @Override
            public AgentInfoVo getByAgentId(@RequestParam("agentId") Long agentId) {
                return null;
            }

            @Override
            public AgentInfoVo getByUserName(@RequestParam("userName") String userName) {
                return null;
            }

            @Override
            public AgentInfoVo getByMobile(@RequestParam("mobile") Long mobile) {
                return null;
            }

            @Override
            public AgentInfoVo getByEmail(@RequestParam("email") String email) {
                return null;
            }
        };
    }
}